package com.tianyi.lib.model;

public class RpcResult<T> extends Result<T> {

    private boolean success = true;
    private Exception exception;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public Exception getException() {
        return exception;
    }

    public void setException(Exception exception) {
        this.exception = exception;
    }

    @Override
    public String toString() {
        return "RpcResult{" +
                "success=" + success +
                ", exception=" + exception +
                ", status=" + status +
                ", code='" + code + '\'' +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }
}
